package vehicle;

public class SynchronizedPoint {
	
	private double x,y;
	
	public SynchronizedPoint(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public SynchronizedPoint(MutablePoint p) {
		this(p.x, p.y);
	}

	public synchronized double getX() {
		return x;
	}

	public synchronized double getY() {
		return y;
	}
		
}
